package cn.cxyxj;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloNacosConfigController {

    @Value("${config.info}")
    private String configInfo;

    @Value("${mybatis-dev}")
    private String mybatisDev;

    @Value("${datasource-dev}")
    private String datasourceDev;

    @RequestMapping("/get-config-info")
    public String getConfigInfo() {
        return configInfo + "，datasourceDev = " + datasourceDev + "，mybatisDev" + mybatisDev;
    }

}
